<?php

namespace app\mall\ui\form;

/**
 * 订单管理表单
 */
class MallOrderForm
{
    public function order_pay_id()
    {
        return [
            'type' => 'number',
            'title' => '订单支付ID',
            'field' => 'order_pay_id',
            'validate' =>
                [
                    [
                        'required' => true,
                        'message' => '不能为空',
                    ],
                ]
        ];
    }

    public function store_id()
    {
        return [
            'type' => 'number',
            'title' => '门店',
            'field' => 'store_id',
            'validate' =>
                [
                    [
                        'required' => true,
                        'message' => '不能为空',
                    ],
                ],
        ];
    }

    public function address_id()
    {
        return [
            'type' => 'number',
            'title' => '收货地址',
            'field' => 'address_id',
            'validate' =>
                [
                    [
                        'required' => true,
                        'message' => '不能为空',
                    ],
                ],
        ];
    }

    public function discount_money()
    {
        return [
            'type' => 'input',
            'title' => '优惠金额',
            'field' => 'discount_money',
        ];
    }

    public function logistics_money()
    {
        return [
            'type' => 'input',
            'title' => '运费',
            'field' => 'logistics_money',
        ];
    }

    public function create_time()
    {
        return [
            'type' => 'input',
            'title' => '下单时间',
            'field' => 'create_time',
        ];
    }

    public function receive_time()
    {
        return [
            'type' => 'dateTime',
            'title' => '收货时间',
            'field' => 'receive_time',
        ];
    }

    public function pay_time()
    {
        return [
            'type' => 'dateTime',
            'title' => '付款时间',
            'field' => 'pay_time',
        ];
    }

    public function order_point()
    {
        return [
            'type' => 'number',
            'title' => '订单积分',
            'field' => 'order_point',
        ];
    }
}